home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1412 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: printf - adding commas to numbers
  5. Date: Sat, 13 Jan 96 17:29:13 GMT
  6. Organization: none
  7. Message-ID: <821554153snz@genesis.demon.co.uk>
  8. References: <4d15eq$lc5@ixnews2.ix.netcom.com> <4d3b5l$fsm@news.infi.net> <4d66rt$cc0@cloner3.netcom.com>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4d66rt$cc0@cloner3.netcom.com>
  15.            chuckh@ix.netcom.com "Chuck Hamilton" writes:
  16.  
  17. >When was the last time you used an "*" in a print
  18. >specifier to pass the length of the output as a variable?
  19.  
  20. That's a feature of printf I've used quite frequenty. By comparison
  21. the number of times I would have found comma delimiting useful are small.
  22. I suppose the alternate form flag '#' could have been used to indicate a
  23. locale-specific format for decimal integer conversion specifier. However
  24. you would be very unlikely to get a guarantee from the standard of a
  25. particular form unless it is effectively an international standard.
  26.  
  27. -- 
  28. -----------------------------------------
  29. Lawrence Kirby | fred@genesis.demon.co.uk
  30. Wilts, England | 70734.126@compuserve.com
  31. -----------------------------------------
  32.